From laravel.com/docs/9.x/valet

Errors

502

You can have a 502 error after MacOS update, just execute a new install.

valet install