How painful is death from respiratory failure?

It varies. If you see people who are drowning, they really struggle at the beginning. People who develop resp failure from sepsis or copd, they suffer initially, but as the co2 rises it serves as a narcotic and we see them gasping but probably not suffering once consciousness wanes. But acute resp failure from any cause makes someone struggle. So please don't do anything bad.