This has affected me and caused me a sleepless night because the said money wasn't for me but the entire family for upkeep during this trial moment. I am regretting my loss because the remaining members of the family aren't aware of this loss.
This is where the problem is coming from, you used money that wasn't meant for gambling to gamble and now you can't get over the fact you have lost that money. You should thank your stars you didn't have more funds on you as that would had tempted you to use it in trying to recover your loss which will only end in more losses.
Although the act you display is associated with gambling addict I won't say you're one yet but you have to be cautious because assuming you're not an addict you're getting there with such behavior of yours. Always allocate funds to be used for your bets that's the best way to checkmate overspending or using funds that aren't meant for gambling to gamble.