There are no fixed rules, it's a matter of how the verb or the action feels. It's possible to omit the dativo de interés, but it indicates who is affected or especially interested/involved in the action. Some examples (dativo de interés in capital letters):
Se ME han quemado las patatas fritas.
Se LE ha muerto el abuelo.
No ME le des caramelos al niño.
¿Se TE han perdido las llaves?