I don’t think so that you can switch the inventory of the products between the warehouses.
But if you want to really switch due to issues then you need to create the removal order of the inventory and send it back to your address after clearing the issues then again create the shipment then your warehouse will be changed. In this way you can change the warehouse of the inventory. Before deciding to switch warehouses, be sure to consider the potential costs, timing, and impact on your inventory levels and sales. It may be helpful to consult with a logistics or fulfillment expert to determine the best approach for your specific situation.