This sounds bad enough that it makes me wonder what the punishment for breaking the rules in jail is. If you can't sleep in a certain direction, what are they going to do if you refuse to obey? Or even can't obey because you don't speak Japanese?
[0] https://www.amnesty.org/fr/wp-content/uploads/2021/06/asa220...
I can't logically think of any other lawfully worse punishment than what was described in the article. I don't know what they'd do for breaking rules in these situations, to be honest.