Session is not being recorded due to invalid sessionId. sessionId must be a positive integer, usually Date().time.
Nothing in the documentation mentions this case, you have to add sessionId = Date().time to the initialization to no longer have the error.
Amplitude: 1.20.4
Session replay : 0.20.2