Excerpt problem and multiple database defragmentation crashing


I’ve been using MN for a couple of years.
Recently I tried to free some space on my Ipad, so I cleared the buffer and emptied the note trash in the MN settings. Then I tried to do a database defragmentation but the app crashed.

Since then, I can see all my documents but when I try to use the Excerpt tools, as highlighting text(text selection mode) or a rectangle, the app immediately freezes for a couple of seconds and then the highlighted text dissappears. The same thing happens with the text box tool.

Is there a way to fix this? I tried to do another database defragmentation but the app always crashes and I even try to uninstall the app and reinstall it and the problem persists.