Is it the anticoagulant that is causing my hair to fall out? If so, why is that happening?

Yes, It’s a known side effect of all anticoagulants but mainly with warfarin. To fix this, you would usually switch to another class of anticoagulant if the hair loss does not improve. Occasionally Coenzyme Q can help if the hair loss is warfarin related.