Hello Sahaduna,
Since this problem has occurred, post you applied thermal paste and re-fixed all Memory modules.
You may try to configure the Memory modules as per below:
Note: If issue persists, try swapping Memory module with good know memory module to isolate the issue.
I am an HP employee, the opinions expressed here are my personal opinions, not of HP.
Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
***Click on "Thumbs up" button to the left side of my post to say thanks! ***