I think it happens from time to time to everyone who plays games, especially competitive games. This is not unusual, and assuming you have lost an important game (or a large sum of money), you will think about it and possibly sleep badly. Although, for example, after something important, I first of all get tired and sleep with great enthusiasm
True and it also happens when you were having a great session of betting and everything was going nicely and suddenly you start having some losses followed by complete haywire and evaporating the balance within moments. It has happened to me a lot and especially when I am playing dice because I am playing with a 90% win chance and 10x on losses so it goes nicely only until I have 3-4 losses in a row and then everything is bad again lol.
Even if it's a big bet like the amount of money that you seldom make a bet, it will surely linger on and stay on your mind, if it's coming from a loan or saving it will frustrate you to lose it and it will stay on in your mind, if you're not comfortable in your loss it will stay on your mind some for hours, others days or weeks and even some for months, we are emotional creature and we have feeling and that feeling stay on, depending on how we address that feeling.
If the money is coming from a loan or savings then one needs to quit gambling right away and see a doctor because this is a direct symptom of problem gambling. I recall when I was betting a lot on bet365 I was once called on my mobile and asked some questions as they normally ask to ensure the gambler is not addicted and one of the questions they asked me was something around "Do you gamble funds which are not meant to be gambled?" something like that in better form and more indirectly.