Not able to install NVIDIA graphics drivers on RHEL 7.1 OS

I am using RHEL 7.1 OS and the kernel version is 3.10.0-229.el7.x86_64. while running some applications, system restarts after some time with NVIDIA 1050 Ti 4GB Ram. Even the system hangs. when running init 1, I am not able to enter into rescue mode. While trying to install NVIDIA drivers i am getting an error showing “please exit screen X before installing”. Can anyone please help me?

Please run as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.

Thank you for response. But I couldn’t ran
Please provide some input so I can run.

How did you install the nvidia driver?