Having some trouble saving my inventory with ProfileService

I’m getting an error I’ve never seen before:
‘table cannot be cyclic’

I know what this means, but I don’t know how to fix the issue because I’m not sure why it is erroring, and where it is. Here is the part that errors:

local PlayerInventoryStore = ProfileService.GetProfileStore("InventoryDataV2", {})

local ProfileInventory = PlayerInventoryStore:LoadProfileAsync(Player.UserId.."-inventory", "ForceLoad")
	if ProfileInventory then
		ProfileInventory:ListenToRelease(function()
			cachedProfiles.Inventories[Player] = nil
			Player:Kick("Your inventory has been loaded remotely, please rejoin.")
		end)
		if Player:IsDescendantOf(Players) then
			cachedProfiles.Inventories[Player] = ProfileInventory
			local Inventory = cachedProfiles.Inventories[Player]
			Events.Inventory:FireClient(Player, Inventory)
		else
			ProfileInventory:Release()
		end
	end