It is really not surprising to see a 40 consecutive losses especially in dice. Even in slots which often gives small amount just to break the dead spin streak gives 30 plus consecutive dead spin (read streak) when we are spinning for too long. I always experienced that scenario since I am the kind of slot player that seldom hop to different games and often ends up playing in a single slot game.
In slots having a lot of consecutive losses happens pretty frequently especially on high volatile games. On the in-house games like Dice or limbo or crash it can also happen but more rarely. The longest "bad" streak I saw was about 20-25 consecutive losses (luckily for myself I was not playing Martingale than or otherwise I would have busted my entire bankroll lol).