Segmentation Fault using openssl v17.01.4 Netgear Nighthawk

I am trying to setup a VPN using OpenVPN. When generating the pem file using openssl, the command fails with a seg fault.

I am running the following command
openssl dhparam -out dh2048.pem 2048

I am using 17.01.4 stable build on a Netgear Nighthawk X4S AC2600

I have caused the router to reboot on a couple of occasions running this command.

Has anyone else experienced this type of problem? If so what were the steps to resolve. If there's any debug info needed let me know.