I feel like the best movie you might be reffering to is The Vigil because it is about a Mazzik which is a terrifying entity in Jewish demonology. There are rules to doing a Shomir which is when we watch over a dead body and pray for the soul, the guy in the movie you might be referring to breaks...