Studio exception when creating a package for review of a project with a server based memory

I only get this error using studio 2021 and the API.

If I use studio 2017 or try to package for review from inside studio I don't get an exception.

The exception I get is:

Sdl.ProjectAutomation.Core.ProjectAutomationException

Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider 

emoji