Why is my Wi-Fi driver not connecting on an HP Pavilion running Windows 10?

Lately I’ve been experiencing abnormal behaviour by the Wi-Fi on my laptop. It sometimes works and sometimes doesn’t.

I’ve checked the device manager and noticed while the Wi-Fi doesn’t work the adapter shows under hidden.

I check properties and shows messages such as “driver name had problem starting”.

I downloaded the same driver from the HP website and installed it. But still doesn’t show up there. It’s an exe file.

Can anyone who has experienced this issue or has a solution help out?