This is good advice generally, especially for severe infections like COVID-19 but there's little evidence _specific_ to COVID-19 and a contraindication with NSAIDs.
The Snopes [1] article covers the general gist although there is an early report around that the minister likely read and passed on in the form of a tweet.
Research is changing constantly right now so evidence may or may not show NSAIDs contraindicated with greater risk than other infections.
Notably, you should not take ibuprofen or other NSAIDS. Stick to acetaminophen/paracetamol instead.
Guidance from France's health minister:
https://www.theguardian.com/world/2020/mar/14/anti-inflammat...
https://twitter.com/olivierveran/status/1238776545398923264