What I expected to happen was...:
iron golems don't drop iron. iron farm spawns golems but when they die, no drops
What actually happened was...:
golems spawn but no give no drops on death
Steps to Reproduce:
1. open 1.20.5
2. acquire iron golem and kill it
Your screenshots don't look like vanilla Minecraft. Are you using any datapacks? If so, does deactivating them help (MC-269887)?