You may want to get some useful imformations and do something to make the situations better. Before that, you should accept what you've been through is truly happen. It's okay to not to be okay.
Then, treat yourself like a friend, what you'll do for your best friend if they suffer the same issue.
For instance, what do you think is the best suggestion for them. Do it to yourself.
These things happen not because you were not wise enough or not hard enough. Like a heavy rain, it just a weather but not a fault.