Hi there!
One possible solution is to use third-party software such as Elcomsoft Phone Viewer to access and read the deleted messages and attachments from your iMessage folder. This software supports a variety of iOS versions and can recover deleted messages and attachments from iCloud, iTunes and other sources. It also allows you to view and export the data to various formats such as HTML, XML and PDF.
Kind regards,
Isaac