Some providers offer indemnification: https://openai.com/policies/services-agreement/#:~:text=13.%...
The other problem is that AI-generated material does itself not enjoy copyright protection.