Security and screen lock in settings crashes

Hello there, I seem to get a "unfortunately settings has crashed" whenever I try and get into the settings and screen lock tab. Every other option works fine. I am on a Motorola droid maxx xt1080 and can't seem to find any solution. I have tried a factory reset, and flashing with RSD lite. Also I can't seem to be able to install the latest update from 4.4. It goes through the motions then says install unsuccessful. Any help would be greatly appreciated. Also, I don't really care about the stuff on the phone, I have cloud backups so I'm good there.

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?