Chosen Solution

My screen started flickering and the touch pad is not working(but working with a mouse) when it does that. The weirdest part is it works well one day and if I restart next day it will flicker continuously and never stops. I tried the following things.

  1. Resetting NVRAM and SMC but No luck.
  2. Run it in safe mode but it still doesn’t solve the problem.
  3. Ran the diagnostic and it says everything is good :(
  4. Cleaned almost all of the software except chrome and adobe. I am not sure what steps should I take next ? Is it coz of overheating or may be the some sort of loose connection between the board and screen ? edit :

the camera is also not working when the screen is flickering

Sounds like you’ve nailed it as something within the internal display! MacBook Pro 13" Retina Display Early 2015 Display Assembly Replacement see if the logic board has corrosion around the Display cable in Step 11. Update (11/28/2020) Look for corrosion as marked