Here's a 'cheat' for you.

Hit ~ to enter console. Then type "setessential 6a772 1" without the quotes. This will make "Dogmeat" invincible. When he 'dies', he merely is unconscious for a bit.