Yarn build production failing "asset optimizationError: write EPIPE"

thanks a lot!! the fix for me was from your possible solutions :
sudo apt-get install libpng16-dev

I was able to successfully compile the theme with yarn run build:production but theres another issue now, the styles that i defined in _globals.css are not getting compiled. There are no errors or warnings.

The styles work perfectly fine when i do yarn run build. What could be wrong now ?