Invalid state transistion errors stopped showing in 2024.9

I was trying to change status of entity A from UI.

I was expecting it show an invalid state transition error as it used to work before 2024.9.

Instead I’ve got a general error message: Server error occurred

In the log file, there was an error:
záznamu ‘

’ nemůže přejít do stavu ‘’. Současný stav: '

Change in the state field of entity A caused an invalid status transition in a field of table B.