I see that makes a lot more sense now thank you for explaining that is really helpful to know
So regarding the NBT being "incorrect" or "mis-structured" is wrong, let me explain as to why for both scenarios(Do note that I wrote both these as ways to clarify how I also got the results that I did); first it being incorrect as the NBT of the command refers the the NBT of the Key in use which for the scenario I was using was a custom item with its NBT altered here is the command for the key /give @p tripwire_hook{display:
{Name:'[
{"text":"Name of Key","italic":false,"color":"white"}
]'} if there is any form of error regarding the command try removing the " and retyping them or try retyping the whole command as to copy/paste as different fonts can cause them to not work but other than that the commands work fine as to the reason I know, I have Minecraft open right now and am executing the commands perfectly. Now as for it being mis-structured might I ask how? If it is for the reason of [,"italic":false,"color":"white"] existing as I mentioned previously in this comment I altered the NBT of the Key item which I had thought was clear as it had modified Name NBT data but if I may have missed something I would be glad to learn as I have been studying commands for the past 3-4 years and anything new I can learn is very helpful.
Personal thoughts-
Though I do have 1 thing that I am a bit confused about and that is how is an enderchest not a container? It is true that it isn't your every day conventional container as all enderchests share the same inventory but it still has the same interactability and function as each other containers as you right click on it and it opens the inventory allowing the players to store items inside now what stops the specific enderchest from not being able to be opened and remain locked but that's just my brain being confused and reasoning why it would be a bug note this also doesn't work for chiseled book shelves but that one makes sense.
So even if the there is no output from the repeating command block as shown by the comparator and redstone lamp, and none of the other commands are running in the whole chain since the commands are all set to only executing if certain scores are set to specific values, they are all still running even though none of them are outputting anything?
Also the problem isn't within the commands themselves its the rotated Command Blocks that are acting up if the Command Chain was strait instead of curved it would work fine but can't do that for space issue in build so I curved it and before making this bug report I spent 4 hours trying to figure out what the problem was studying how Chain Command Blocks work watching multiple vidoes as well where in each video this was not a problem.