What do you think causes that? Simply prolonged bear market? Pivoting to AI?
Apart from what the two reasons you already mentioned (both are imo part of the explanation) there is also a third one: the expansion phase of big US miners, who raised a lot of money in 2023-25, is over. In these years they were able to raise more capital with Wall Street money than what was justified from the ROI. Exaggerated price expectations (200k or 1M) in the 2024/25 bubble did also play a role.
The consequence was that the difficulty rose to unsustainable levels. Some miners are simply not profitable enough to mine at 3.125 BTC @ 60k with current electricity costs and current difficulty. And their reserves should get depleted fastly.
In short: a mining bubble is deflating. So some will face bankruptcy probably, but of course that is good for the players able to survive: they get a more modest difficulty.
And what can be the consequences if the situation doesn't improve/keeps worsening?
Nothing to worry about. Bitcoin is safe enough, and eventually the difficulty will align with the costs again and everything will stabilize.