If it works with hardware encoding disabled and doesn’t with hardware encoding enabled then it’s your graphics drivers → As mentioned before latest is not always the most stable
If it works with hardware encoding disabled and doesn’t with hardware encoding enabled then it’s your graphics drivers → As mentioned before latest is not always the most stable