"The result of having all these unhealthy thoughts come into your mind while you meditate,"
I would hesitate to call these thoughts unhealthy, on the contrary they are completely natural and harmless. It is our reaction to those thoughts that can be unhealthy.