The shied won't deploy if you directly look at a mob and you are in his clicking range. You have to look in the air to deploy the shield while fighting mobs.
To reproduce the bug just try to deploy your shield while looking at a mob near you. No matter what hand or even if you have another item in the opposite hand or not.
Exemple video : https://youtu.be/9orc3x1fTC4