When trying to import my LastPass passwords, I had many that were over 1000 characters for the notes, so this script simply filters out the values that are likely too long.
Once this has been run you will have 2 files, one that can be imported, and the other can be edited, or broken up to allow the remaining import.