Handling 'nested errors' in TypeScript - Effect Community