I resolved this by manually updating the @backstage/plugin-api-docs to version "0.13.0-next.1". This has a new version of "swagger-ui-react" which fixed this exact issue in https://github.com/swagger-api/swagger-ui/issues/10502.