m.2 can get hot, installing them under a hot video card cooler is a judgement call, especially if there is more space elsewhere. The truth is most people probably don't use their 1x slots.
I found some ultra low profile pcie extensions (basically mining risers that use a USB3 cable) that allow me to relocate the cards elsewhere but still install them in slots that are under big GPU fans.