I removed the Intel right-click menu from the registry and now everything is working and there's no more flashing screen when I use the right click.
So it's a driver issue and it needs a fix, but if anyone runs into this with Windows 8.1, then you can delete the below entry from the registry to solve the problem.
HKEY_CLASSES_ROOT\Directory\background\shellex\ContextMenuHandlers\igfxDTCM
If you use an older Windows, then try to delete the following entry:
HKEY_CLASSES_ROOT\Directory\background\shellex\ContextMenuHandlers\igfxcui