You’re trying to deference a nullptr which is the reason for the crash, a fundamental no-no in C++.
I’m assuming your array doesn’t store pointers, in which case the correct code is this (this also assumes you have already added elements to the array, otherwise you’ll get an out-of-bounds crash as well.
Inventory[0] = FInventoryItem();