Hello Anshulee Asthana,
Welcome to the Microsoft Q&A forum.
Please check if the pipeline is failing before it reaches the PostgresSQL sink. If it fails before then, it may be unable to write the error rows to the storage.
Also, please check the error output dataset is configured correctly and has the correct permissions to write the data.
I hope this helps. Please let me know if you have any further questions.