Unknown error occurred 4001
I'm getting the following error when I open iTunes Ver. 12.5.1.21.
iCloud Music Genius results can't be updated right now. An unknown error has occurred 4001.
This happens when I open iTunes and the library is trying to update my iTunes match/Apple Music files. The wheel spins for about 30 minutes and then I get the above error in red. I didn't do anything different. I am using only one iTunes library and files which reside on an external drive. I manually point iTunes to the exact directory and library file when I launch iTunes.
This just started happening. Every thing was working fine up to about a few days ago. I have about 23,000 songs so far in my library.
Any suggestions would be great.