I tried everything Microsoft and HP suggested including re-installing Windows 11 but it still dropped the internet connection at random.
I fixed the problem by un-installing Windows 11 and installing Windows 10. Windows 10, this problem does not happen. Its been about 6 months and I have not had my internet dropped under Windows 10. I did not have to spend any money on another adapter or anything like that. The problem is with Windows 11 and it appears that Microsoft still does not know how to fix it or they would have provided a fix. If you go back to Windows 10 like I did you won't have any problem with it dropping your connection and having to re-start.
I hope this works for you also.