I recently tried to change a single word in a PDF and nearly tore my hair out (thank you LibreOffice) I'll definitely keep this in mind for next time, thank you.

Try photopea next time

Wow - didnt know about this tool for PDF editing - thanks!

https://www.photopea.com/

PS: in my quick test of editing a PDF text -- the output PDF had weirdly added an extra "&" symbol at the end of every existing line of text. will try out more to see if it was something in the input PDF that was causing it.

What is photopea built on?

Author does yearly AMAs on reddit, you should look it up.