When I play a note, I mute it by lifting my fretting finger while keeping it lightly touching the string. This works fine on most notes.
However, when I do the same thing on the 5th or 7th fret of the A string, or the 7th fret of the D string, I get an extra high-pitched noise instead of a clean mute. The noise gets louder if I turn up the amp’s volume.
Your the opposite of me. I was actually looking for that noise at first. I had heard things about them. Perfectly normal just harmonics, as your technique improves it will be controlled better.
To stop it you need to move your finger slightly left or right. It is useful if you know how to tune your bass with this method. 5th E harmonic is the same as the 7th A harmonic and so on for the others.
Be “careful” with this video! It’s too advanced for the OP at this stage. Jaco played a lot of “artificial” harmonics, as demoed in the intro. These are very hard to learn, and there is no reason for someone just starting to explore these.
That said, have fun exploring the “natural” harmonics, on the 12th, 7th, 5th (and just below the 4th) frets, respectively.
I chose that one because it more than talked about it but actually showed playing them and explaining a bit to understand what was happening and OP could determine if that was what they were experiencing or something else.
You may have your fingers curled over the top instead of laying flat across the strings. This is a common thing most beginners do. (I did.) If you keep your fingers flatter, the muting happens sort of automatically.
Video I made for someone else explaining/demonstrating: