Monitor affecting the sound of recording

My microphone is fine and will record audio clearly, but when I try and record with the monitor option through my headphones it makes the recording sound a bit computerised or robotic if that makes sense? But it effects what the audio sounds like. Is there a way to get rid of this? Thanks