I am trying to enable attachments on a feature class in our enterprise geodatabase. However, I keep getting an error that says: 'Failed to create table attachments. Target state not found in the STATES table.'

I have done a full compress on the database (removed all versions and compressed down to 1 state) and I still get the error.
Any ideas of how to troubleshoot this would be appreciated.
Extra notes:
- database is version 10.7
- it is on SQL 2019
- I also tried to de-register the dataset as versioned and I got an error trying to do that. It wouldn't let me unregister the dataset as versioned.