Feature or bug - breaking files cause stuck state where I cannot change branches

My branch has pending changes that are preventing me from changing branches. I tried shelving and undoing these changes, I do not care about these changes at all. I’m seeing this error when I try to undo my changes, please help me get passed this error. Why is this happening?


Okay, I managed to figure out why this error is occurring. This filepath exceeds the 264 char limit for windows. However why would this prevent changing branches. None of these files are used in the project and the branch I was changing to did not have any of these breaking files. Does the community see this as a feature or a bug, I personally want to be able to change branches even if errors like these occur.