ALERT: Transaction Error. Exception thrown in contract code while using Safemoon fork

Hey guys, I’m currently trying to mess with a safemoon fork and I’m trying to create a dxlock for my tokens. However, whenever I try to lock more than 7% of my tokens, it gives me ALERT: Transaction Error. Exception thrown in contract code. What’s going on?