James, Hmmm . . . I'll try that.
(Sorry this will be long, but it's hard to explain otherwise - I'm a bit OCD so I create extra work for myself ! LOL.
Let me explain why I'm even trying to be able to work with the Music folder, since normally it is created by and managed by the Music App (aka iTunes).
After getting my Mac mini and migrating from Windows iTunes to Mac / Big Sur, I decided to re-import all of my CD's as AAC 320 kbps VBR as opposed to 256 kbps fixed rate that most of it was in. (A few were 256/VBR). No problems there other than a few weeks where iTunes Match seemed to be having issues and importing one CD could take 2 to 3 days to finally say "matched" or "uploaded". A google search revealed others were having the same problem. But, one day it started working normally again.
Once I completed this, I set out to make sure that all of the songs had the correct album artwork. It seems that with the new version of the Music App, the expected album art is sometimes wrong. Some of the Albums that had been correct in Windows were changed to something else, often a picture of an artist from the present day instead of from the original album 20 or 30 years ago.
I had already figured out to turn off "Automatically download artwork", but even still, it would sometimes insist on using an incorrect picture.
So, I either downloaded artwork from Amazon (Sorry, Amazon, but I do work for them! lol) or scanned my album covers as PNG files, cleaned them up in Pixelmator Pro, then saved as JPG at 80% quality with metadata removed to keep the file sizes smaller.
Then in the Music app for each album I would select all of the songs, click on "Get Info" choose "Artwork", delete any existing artwork, then add the artwork that I had either downloaded or created my self. I figured out that this was the only way to always have the correct artwork. And if you copied any of the music files to an external location, the artwork would remain -- it is embedded within each file. It does make the file sizes slightly larger.
I wanted to create copies of these files grouped by year released / year recorded, copy to a USB key and play them in my car. A sort of "Walk down memory lane" year by year starting with 1955, the year I was born.
Now, yes I know I could connect my iPhone to my car and use the music app to do this by creating playlists. But my phone doesn't have enough space for all of my library and I don't want to turn on cellular data for the Music app.
I had read how to do this grouping by going to the top folder (Music in this case). Then in the Search bar within finder, enter "kind:music", then hit the + and add additional criteria, for example "Year recorded equals 1955"
I had done this for a few years as a test, but I would find songs with an incorrect "Year recorded" or a few that still had no album art. I was probably 98% finished with this whole project, just putting in new artwork or putting in newly scanned artwork to replace lower quality artwork that I may have put in years ago.
Then last Friday, September 3, the search would not work, Finder itself was becoming non responsive.
So, my question: Is there a limit on the file size of a JPG that can be embedded in a music file? Could one of these be too big, or corrupted somehow?
But I will do as you suggest. I have many years experience in Windows server (all the way back to NT 3.51) and some Unix / Linux experience. But its been about 7 years now that I've worked at the Unix command prompt. Time to clear the cobwebs in my brain.