Unsafe assignment of an error typed value - tRPC