Any multi block structure is also affected by this. You cannot /setblock beds, doors, rose bushes, etc., since you need to place them first in an "invalid" state before completing the multi block structure.
Maybe this bug also relates to MC-160562. It also drops an extra item, where it shouldn't have when replacing or moving multi block blocks with commands or structures.
I found a different solution, where neither firewall nor antivirus were the culprit.
This error also occurs when Java tries to open a socket on the IPv6 stack, but could't get a connection to the outside world. Try forcing the use of the IPv4 stack by adding -Djava.net.preferIPv4Stack=true to the launch options.
Looks like the changes with the addition of the strict option in snapshot 25w02a have fixed this issue. Even with or without using the new strict option no item drops, sound effects or particle effects are generated.