Issues like this almost certainly are caused by something else also hooking into games and thus causing a conflict. You can either try to find the offending app or wait a while until the ‘Attaching to…’ dialog starts to offer some trouble shoot options, among them installing a hook helper into the game folder, which often can deal with the issue without having to find the root cause.
The better way however is of course finding the offending app. More information on the matter in general and what kind of apps to watch out for in regard to potential hooking conflicts in the trouble shooting guide on top of this sub forum.