#say check_enchant 

execute at @s run summon minecraft:armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Tags:["nl_StoreEnchant"]}

execute at @s run data modify entity @e[limit=1,tag=nl_StoreEnchant,sort=nearest] HandItems insert 0 from entity @s Inventory.[{Slot:102b}]