C++ Inventory: Issues with networking

When the client opens the inventory or picks up an item, the game and engine freeze for 4 minutes and then crash. It gives the error: array out of bounds on all of the inventory arrays and it looks like the inventory is not getting initialized on anyone but the listen server player. I have tried fixing it for a week now with no luck.

The inventory system on github