If I turn off Sonic Analysis

My scan got stuck at 90 percent, it’s advancing anymore and I’ve tried everything. Sonic being stuck effects my library updates, so my question is…
If I turn it off in the settings will it erase l the data collected?

I can’t tell you unfortunately.

Here’s how to find out the culprit though:
Enable debug logging on your server
restart your server
trigger a library scan and abort it for sonic analysis to commence (or wait until maintenance time)
inspect Plex Media Server.log to get a clue about the particular album which causes the hickup
remove that album temporarily

Nope.