That's how gambling works when you lose, you always have that feeling that you need to recover that loses. That's why it's affecting your mentality when you are about to sleep, you are thinking of strategy that could work to regain your loses but it's not possible that way because gambling is all about luck. There is no strategies that actually work except you know how to stop when you're done but most of the cases people want to overcome those feelings and return back to gambling to lose again.