If a PDF you've exported from LibreOffice Writer refuses to upload to your LinkedIn profile, with a vague "there was a problem"-type error, the answer for me was to make sure it's not being exported as a "Hybrid PDF".
This is found in the PDF options when you choose "Export as PDF".
Figuring these things out is the price we sometimes pay for our open source habits 🤷.