Hello and hope you are doing well.
As suggested, your symptoms of bad foul smell in the nose could be 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.
This is probably due to a sinus infection.
Try a sinus rinse before heading off to the doctors.