Here is a dirty (CSS) workaround to prevent (end)users from running into this. Otherwise the user will see an error message in the PSWP layer.
// Quickfix for the missing Photoswipe / PSWP SVG support // Make the link not clickable. // See: https://www.drupal.org/project/photoswipe/issues/3294118 a.photoswipe:has(.no-image-style), a.photoswipe:has(img[src*=".svg"]) { pointer-events: none; }