502 Error only on admin

Ok for those looking for a solution to this…

Make sure your PHP version is up to date.

My PHP was 8.2.9 - I upgraded it to 8.5.3 (the latest at time of posting) and that seemed to fix the issue.

Not sure why it was working until today but that was my solution anyway.