Download and install both:
HP UEFI hardware diagnostics version 8.2.0.0 and HP diagnostics windows.
https://www.hp.com/us-en/campaigns/hpsupportassistant/pc-diags.html
Power on the computer and repetitively click F2 > overnight run the HP UEFI hardware diagnostics in extensive > loop until error > in the AM if there have been at least 2 loops > click esc > run the audio and any other component tests as needed > take pictures with a camera or smartphone camera > post images into this thread
For any problems posting images please use share links: one drive, drop box, or google drive
Open administrative command prompt and type or copy and paste:
msdt.exe /id AudioPlaybackDiagnostic
msdt.exe /id DeviceDiagnostic
Using the snipping tool post images of the detailed results for each troubleshooter.
.
.
.
.
.
Please remember to vote and to mark the replies as answers if they help.
On the bottom of each post there is:
Propose as answer = answered the question
On the left side of each post: Vote = a helpful post
.
.
.
.
.