I worked in gambling for the start of my career too. It’s a toxic atmosphere at absolutely every level. They generally run on a principle of assuming IT is worthless to the company and just a money dumpster fire. The way they treat you has no reflection on your ability. At times, just the weather alone dictates the mood of management. Others, management is actively alcoholic, on the job!
I’d do everything and anything that could make your life more stable. The biggest, positive place to start is, and this can take a lot of work, sleep. Make proper sleep your first priority every day. There’s a whole lot that can make sleep better or worse, so there’s no way for me to be complete. But maybe consider going for a walk, writing in a journal, and consistent, exactly on the same time every day melatonin slow release - and low dose.