This article by Avira (part of NortonLifeLock) claims that 2FA (2-Factor Authentication) may be sufficient to protect against formjacking:
Enable 2-Factor Authentication: Create strong and complex passwords to protect all your accounts. If possible, configure 2-factor authentication, as this may be enough to protect you from a formjacking attack.
How can 2FA protect against formjacking? If either device involved in a transaction is compromised with formjacking code, it seems like 2FA will be irrelevant.