Nvidia GEFORCE GTX 1050 TI does not work properly


I just want to know if someone has faced the problem I am facing now and a cure for this itch.
i have a NVIDIA GEFORCE GTX 1050 TI with 6 GB RAM, 2nd generation Intel i3 processor and Foxin 800 SMPS.

When I add the card into the slot, it works well. But sometimes, by shaking the mouse and keyboard lightly, hibernation disappears ( I mean it hangs ).

Recently I had to remove the card and when I added the monitor to the card I don't get a display at all via the HDMI port, I tried to ;use VGA, it works well.

Is my card faulty or something more is happening, which causes the mouse and keyboard to hang?