You will need to comment out the patches giving you trouble… eg.
sed -i “s/erpnext.patches.v10_0.set_default_payment_terms/ERPNext.patches.v10_0.set_default_payment_terms/” ~/frappe-bench/apps/erpnext/erpnext/patches.txt;
and then run (tuned to your site name etc
bench --site site1.local migrate
works OK on all the “good” patches, ie. if the “bad” ones are commented out.