Hello and hope you are doing well.
Any infection or blockage in your nose can cause you to smell something that is not there. Your symptoms of bad foul smell in the nose could be also due to sinus infections. They are due to stasis and infection of the sinus cavities, and the resultant drainage into the nose causes the bad smell. Facial pain, fever and nasal discharge are the other symptoms of sinusitis. You will need to consult your primary care physician for proper assessment. In the meantime practice good breathing exercises, humidify your room and do steam inhalations.
Hope this helped and do keep us posted.
Check your tonsils for stones.