Wow, I'm surprised O'Reilly Auto Parts finally listed a compatible battery on their catalog. I just tested it and it worked. Hopefully all other car parts stores do the same so people can more easily find a replacement without knowing that the battery is a group size 51R.
As for the error messages, they need to be cleared when replacing the battery by following this procedure:
1. Disconnect the connector under the rear passenger-side seat cushion
2. Disconnect the negative terminal of 12v battery
3. Wait a minute
4. Connect the negative terminal of 12v battery
5. Connect the connector under the rear seat cushion.
I was going to link directly to the Tesla Do It Yourself page for replacing the battery, but the link breaks for some reason. Go here
Model 3 Do It Yourself | Tesla and scroll down to Low Voltage Battery for the replacement procedure.
View attachment 906335
View attachment 906336
View attachment 906337