Add the highlighted nodes shown in the image below in the BP_PlayerInventory in the Remove Attachment function.