NVRM: Xid (PCI:0000:01:00): 79, GPU has fallen off the bus - HP Studio G5

I’ve been fighting the same issue too. For me pcie_aspm=off didn’t work but I found a solution that works on my computer by disabling ASPM of the GPU discretely. I explained it in this reply. Maybe it can help you.