OK personally i think it could be the X36 causing your problems.
I say this because in the past i suffered exactly the same symptoms and many discos because of it.
Have you setup a profile for AH or downloaded one ?
My symptoms were it could be 10 mins or 2 hours before a problem but when it occured it was always when using a hat switch and usually whilst moving the stick as well.
PC would totally crash or even reboot, eventually i decided to alter the programming of the profile, timing values and experimenting with different ways of achieving the desired command.
Of course if you have not programmed a profile or DL one to use with AH then its probably not gonna be this

Anyway in the command editor for hat views in the section "press" you want the lower case button of choice, in the "repeat" section leave it blank and in the "release" section you want the upper case part of the command only, timing for all will be zero.
I realise it may not be the fault or cure for you but it sure cured it for me, so has to be worth checking it.