Perhaps it is picking up interference that is sometimes present and sometimes not.
There are many possible sources of interference. It could be something inside the computer, or something outside the computer.
Outside the computer it could be something as simple as a mobile phone checking for messages, or a fluorescent light switching on in another room on the same electrical circuit, or a lighting dimmer switch, or a refrigerator, or 1001 other possibilities.
Inside the computer it could be intermittent due to power saving modes, or wifi scanning for new connections, or bluetooth scanning for new devices, or 1001 other things.
A good, high quality sound card should be largely immune to interference, though not all devices are, and no devices are immune if the interference is very strong.
To try to isolate the source of the interference, you could try switching off all electrical appliances in the house, including lights, mobile phones, iPads, and other portable devices, and making a load of test recordings. Ideally, though perhaps not practical, you could try moving your computer to another room, or better, to another house.
Do you still get the problem? If yes, then it’s probably something in the system (PC, sound card, mic, etc.)
Buy or borrow another mic. Do you still get the problem? If yes, then it’s not the mic.
Buy or borrow a USB sound card. Does that fix the problem?
Sorry but there are no easy answers to this type of question. You just need to try different things and try to make the problem better or worse. If you can make the problem worse, then that can give a strong clue as to what is causing the problem.