I have tried updating to @strapi/strapi version 4.10.7 and the error no longer persists
@strapi/strapi
4.10.7