Can’t find a movie for ages

I only remember one scene. Emperor or king is laying in bed, sleeping. Then three little boys (I believe it’s his sons) enter room screaming and they were wearing some kind of masks while jumping over their father, the king. King thought they were demons who are attacking him so he kills them.

This is all I remember, I couldn’t find this movie for ages.