I set php to 8.2 using J5.0.1 and Helix 2.0.18 and SPPB 5.2.4 and had the same problem.
I was just working on another site and it is having the same png issues. Using php 8.1, J 4.40, Helix 2.0.17, SPPB 5.19. This is only happening with png images.
This time I got a more helpful error. It's the dreaded page of death 0 error.
0
imagesx(): Argument #1 ($image) must be of type GdImage, bool given
Removing the png image corrected the error.
I also tried using php 8.3 and this did not work either.
Thank you for helping with this.