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).
Not usual but it can happen, 40 red losing streaks are something that you can't imagine happening if you are the one who's playing, those who are using martingale system who hopes that they can recover their losses after winning their next bet would be empty if that long losing streak take place.
Though, if you experienced that long red losing bets for sure the aggressiveness inside you will lead you to lose more than your expected budget.
I have seen that happening myself with the Crash game, the game crashed more than 20 times in sequel and many players have lost a lot of money during that gameplay. Those games are totally unpredictable and anytime the game could get annoyed for the gamblers when they see it failing in a sequel of 15 times or more. I tried a strategy on that game which was to bet only if I can see 10 times the game crashing as red, and I would start betting at 11th time, but the strategy was a complete failure because in such constant red multipliers a gambler will empty up the wallet if using Martingale strategy, and I mingled up my strategy with the Martingale's strategy.
The Martingale strategy is a total failure and anyone who uses it in such games will empty up his full balance. I think it's not a good way for a gambler to use that strategy on games where failure ratio is unpredicted because a user could empty up the account balance within minutes of gambling. When it comes to Crash game then I recommend everyone to avoid that strategy if they don't want their account to be emptied. Try to avoid it in such games and dice is also among these games so a better gambler would never go with such strategy in online casino games.