Breaking things is a part of learning. First 5 projects are typically crapshoots.
I personally prototype in a dump project. Then port over the working code to the main project.
FYI, Inventory should be handled by the Player State. Generally you use an Actor Component for the logic and add it to the Player State class.