It sounds like the GPU is on its last legs.
Being that it is an HP Pavilion, you could upgrade it luckily. Are you looking to game, or are you just going to do basic needs with the computer.
If it is the former, you need a higher end card. If the latter, you need a lower end card. No use paying for something you don't need.