Now it seems as if PHP8 doesn’t support Imagemagick or Ghostscript…
So I end up using a paid version ($20) to show my PDF thumbnails that doesn’t use modules called https://wp-pdf.com
It works with ACF upload field and the render template code as well as @jonas code!!