Not to worry.
Possibly a m.2 device might get warm while doing a stress test.
But in any normal or even any usage scenario there will be no issue.
Temperatures are calculated from voltages. If you really wanted to measure the actual temperature, you would affix a thermocouple to the device.