When you change your block interaction range ,you open a crafting table which auto close because of the distance
Steps to Reproduce:
1. Do the command "/attribute @s minecraft:generic.block_interaction_range base set 20"
2. Open a crafting table at your max distance
3. The crafting table will close immediatelly
Duplicate of MC-267380.