Could you please provide the model of the DVD writer as updating the firmware of the same may fix the issue.
Also, please check if the system hangs in Safe Mode as well.
For Safe Mode, restart the system and tap F8 for advance boot options. Select Safe Mode and hit enter.
Also, try connecting the DVD drive to a different SATA port and check if the issue persists.
Please keep me posted.
Thanks & Regards