I always lock myself in my room when I face big problems like losing someone I love, work and even losing money while gambling (my family understands my behavior). usually after 8 to 9 days, all my feelings will return to normal and start to get better. I really have a hard time hiding my behavior when I'm at a loss and it still happens to this day.
If you keep doing that without sharing it with others, it might be difficult to find a solution if you try to solve the problem alone.
Maybe we can solve the problem once or twice but that doesn't mean we can solve everything alone because we need other people who can help us solve it.
You should be able to try to share the problems you have with other people because it can help you to reduce the confusion you are already feeling.
But if that's the best you can do to solve every problem you have, I hope you do well and can find a solution for every problem you face.