Unfortunately, when I got my camera from the cellar, the issues didn't appear anymore, so I have to simulate it with an emulator screenshot.
If I remember correctly, it looked similar to this:

Sometimes it appears in black, sometimes in white and here it appeared in green.
It's definitely not an interference from the video cable or from the TV itself since this only happens with SMB and no other game. But it doesn't happen whenever I have the cartridge in the console. Although I remember that the same thing happened two years ago as well, so it's not a new phenomenon.
My question is: Is this some software-related glitch that happens on all cartridges since it's part of the code? Or is it an issue that happens due to faulty or dirty contacts?