Excruciating pain at the end of life is extremely rare. The evidence shows pain and other symptoms, such as fatigue, insomnia and breathing issues, actually improve as people move closer to death.

Source: No, most people aren’t in severe pain when they die