I recently had this problem with BF4 , while all other games recorded fine , so my solution was to
Right click on Bandicam icon/properties/compatability/then tick box to"run as administrator"
and this had fixed the issue for myself after many hours of trying