Recently, when opening iTunes after letting my Apple Music subscription lapse, I discovered my entire listening history and ~15 years playlist metadata had been automatically purged by Apple. Upon contacting Support I was informed this was the expected behavior and that my data was likely unrecoverable.
Fortunately I had a backup of the metadata. Do you?