Music stops playing randomly
I'm currently running OS 12.3.1 Monterey on a 2019 21.5" iMac. Music (1.2.3.56) just stops playing.
All songs are on my hard drive (uploaded from CDs), so there is no streaming involved, and no iTunes purchases involved. All songs are checked at the left of their rows.
This has been happening for many years. With my old computer, I thought it was my outdated AirportExpress stations, or the old computer. Now I'm using Sonos speakers throughout the house, and the same problem. So it's not between the computer and the speakers, it's within the computer.
Sometimes it stops after just a few songs, and sometimes it plays for hours at a time before stopping. The problem does not seem to be related to any other event. It doesn't seem to be related to whether I start the music on the iMac or from my phone -- or whether I play from the radio or from my own playlists. Always random stopping.
I just want the music to play continuously. Please suggest a solution.
iMac 21.5″, macOS 12.3