Internal server error instead of 403 Forbidden

Received a reply in another thread I posted to try updating my strapi version. At the time of writing it was 4.3.6. After updating the version for all strapi dependencies, running yarn install and yarn build, getting the proper 403 error now.