Blueprint to C++ and Engine Freezing?

You’re not using the type and ID as I suggested by that comment.
Replace this with

ItemsIDArr[i].Type 
ItemsIDArr[i].ID

with

SpawnType = ItemsIDArr[i].Type
SpawnID = ItemsIDArr[i].ID