@moodyahhhhh
You're certainly right to recognise that those steps alone won't solve everything. A sensory toy/fidget is a great tool for the moment, but it doesn't carry the weight of a semester or the weight of your grief 💚
If those small actions don't feel like they're enough, then I suggest lowering the cognitive load and finding a safe release valve.
If your campus has a library with individual study pods, a multi-faith/prayer room, or even just a quiet corner of a park, those can be "safe" places to be withdrawn without being totally isolated. Sometimes just being in a different physical environment can help you feel less trapped.
Since your classes are high-pressure, plan exactly what you will do afterwards. Whether it's putting your headphones on with a specific comfort playlist or sitting in your car for just 10 minutes of silence, having a ritual to "shed" the stress of the classroom can help stop it from pouring into the rest of your day.
For these remaining weeks of the semester, what does "bare minimum" success look like? It might look like looking at your syllabus and deciding what readings are "must-dos" and which ones you can get away with skipping. Also, giving yourself permission to be a "distinction," "credit," or even a "pass" student (based on what I had at my university) for just one month can save the energy you need for the future you.
Once you've contacted your student union, the next step is letting them do the heavy lifting. If they can get those attendance requirements adjusted, your next move might be actually taking a day off when the headaches hit, without the guilt.
When you think about the "next" thing, does it feel like you're looking for a way to feel better, or just a way to make sure you don't collapse before the end of the term? 💚