How Long Does It Take For Items to despawn in Minecraft Bedrock
After 6000 game ticks or 5 minutes of being loaded in chunks, stuff begins to despawn. The item that has the most time remaining is counted when two items stack merge. When a chunk is unloaded, the five-minute timer is paused. Before the despawn timer gets to zero you have the chance to pick all your items.