Read-Only Log truncate required to run DB

Getting this error while trying to open a readonly db:
while opening memtables error: while opening fid: 5109 error: while updating skiplist error: end offset: 19270461 < size: 134217728 error: Log truncate required to run DB. This might result in data loss

	badgerOptions := badger.DefaultOptions("./data").
		WithLoggingLevel(badger.WARNING).
		WithSyncWrites(false).
		WithReadOnly(true).
		WithBypassLockGuard(true).
		WithCompactL0OnClose(true).
		WithNumCompactors(10).
		WithBlockCacheSize(4096 << 20).
		WithMaxLevels(8)

db size: 752G

What version of Go are you using (go version)?

go version
1.17

What operating system are you using?

Linux

What version of Badger are you using?

github.com/dgraph-io/badger/v3 v3.2103.2

If I remove the ReadOnly, it works.