Before you factory reset, did you have "USB Debugging" enabled in Developer Options?
Attempting to flash a custom ROM or kernel using tools like Odin when OEM Unlocking is not enabled in Developer Options. frp lock status triggered