function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prasanjeet Dutta 10Prasanjeet Dutta 10 

How to get a validation error message from trigger to lwc

VinayVinay (Salesforce Developers) 
You would need to build them in LWC.  Check below examples that can help you.

http://sanjaykeynotes.blogspot.com/2019/10/lightning-validation-with-custom.html
https://www.salesforcepoint.com/2020/09/validate-lwc-input-data-how-to-add.html
https://www.biswajeetsamal.com/blog/handle-trigger-and-validation-rule-error-in-lightning-component/

Thanks,