M.2 SSDs run hot and can be a problem in small enclosures or heat sink cases. We do recommend some type of cooling solution whenever it's possible. This old GPU cooler gets a second life after diligent sandpaper action, and will be beneficial.
Source: @dkemg