1. If possible I would suggest to simply block all items from being able to be dragged onto the hotbar, as long as they're not in a shirt, jacket, pants or vest. Those are the areas that can be accessed quickly and not the backpack.
2. Alternatevily this restriction could be done, only for weapons and not things, such as canteens etc.