Not your screen monkey (he/him)
If you're having unhealthy responses to situations, it is something you should address, especially in the current times. If you're beating yourself up because you made a mistake as a DM, you should feel like it is something you need to address and improve. It is unhealthy and there are a lot of resources out there to help.
To use a passé phrase, mostly because it's kind of funny now with more modern connotations, all GMs have pulled a boner from time to time. It's not that big a deal as long as you learn from it, not beat yourself up about it.
The rules in Advanced Squad Leader actually have good guidance on something like this. If a mistake occurs at the table and you catch it immediately, correct it. If other turns have been taken by the time you catch it, just move on and do it right the next time it comes up. It's good advice about moving on and resolving to do it better the next time.