I recently upgraded my HP Envy 4 1043CL Ultrabook to Windows 10. I also pulled the hard drive and replaced it with a Samsung SSD. Windows 10 went on fairly easily but every time I closed the lid poof Windows 10 would crash.
After inspecting the minidump the problem was clearly related to the Intel Rapid Storage driver (IAStorAV.sys). I confirmed that Windows Update had completed all it’s downloads. For some reason this driver was not included in the updates. It was released on 12/14/2015. Download SetupRST.zip and unzip the file and run SetupRST.exe and then reboot.
The version I used was 126.96.36.1992. The driver can be found at this link below.