We had similar issue, but as our enums have named keys we could find out which are problematic. Found the solution by adding WrapperType to them at all dto-s where they were used
WrapperType described here https://docs.nestjs.com/recipes/swc#common-pitfalls