Just for clarification: there is iTunes, which is now renamed to Music on macOS (I often refer to it as Music.app to emphasize the difference to, well, music), and there is Apple Music (the music streaming service from Apple). The OP was referring to Music.app.
@Detlef, can you try refreshing the files as outlined here:
If this doesn't work, I'd start from scratch with a new Music.app library (and keep the old one in a backup).