Did you have any warnings about the battery, adapter or a thermal shutdown? When it shutdown were you gaming, doing word processing, etc.? Run diagnostics (F12 immediately at boot) and watch for any errors.
I am not a Dell employee...I am forum volunteer
Serious work on an E5430 and constantly building and working on an i5-6500 Desktop
NO Warning about Battery, Adapter, or Thermal shutdown.
it just off while working on google chrome, vscode or any other program and it also gets off while watching videos or pictures, which mean it gets off while doing any work on laptop.
May be it is getting thermally throttled. Try putting your laptop in a position where the vents have a clear contact with the air, and not any surface. If it works, please accept as solution.
U2CAMEB4ME
6 Operator
•
6245 Posts
2902
0
Posted August 1st, 2021 08:00
Welcome to the Dell Community @Harshil_sharma
From your Diagnostics; "LCD Cable Not Installed"
I would say, try reseating the LCD cable on the system board.
Dell Latitude 5420/E5420/E5420m Owner's Manual:
https://downloads.dell.com/manuals/common/5420_pdf_en_us.pdf
Best regards,
U2
NOTE:
Your pictures where rejected because they have your Service Tag.