I don't see your "Lenovo M7" in device list https://devices.ubuntu-touch.io/
You shouldn't try installing Ubuntu Touch on a not listed device...
If Lenovo has a tool to reinstall android you should do that.
Edit : https://support.lenovo.com/fr/fr/downloads/ds101291-rescue-and-smart-assistant-lmsa