When you installed the new cpu cooler, are you absolutely sure that you didn't touch the m.2 drive by accident? Even a small scratch in the wrong place can make it behave like this.
Also, carefully check the drive for any stray cpu paste, some cpu thermal paste products are conductive, so a...