Blender closes randomly when deleting linked libraries

I’ve been having issues with several blend files. These files have linked objects and/or materials in them. When I delete one of these links, blender crashes. It’s not something that happens all the time or with a specific link, it seems to happen completely randomly.