Use a ROM (same chipset, same Android version, similar RAM/ROM size). Then edit the scatter file’s partition sizes manually using a hex calculator – but that’s for advanced users.
If your phone still boots to Android, you can generate a scatter file using: mt6582 android scatter file download