Replica set InvalidSyncSource

I am implementing a replica set PSA, with 1 primary, 1 secondary and 1 arbiter, but I am currently facing the error:
{
“durationMillis”: 40970,
“status”: “InvalidSyncSource: error fetching oplog during initial sync :: caused by :: Upstream node rolled back after choosing it as a sync source. Choosing new sync source.”,
“syncSource”: -,
“rollBackId”: 153,
“operationsRetried”: 30,
“totalTimeUnreachableMillis”: 11122
}

I tried looking online and asking chat gpt, and the sources told to delete all the data on the secondary and increase the oplog, then let the initial sync run clean. But it also failed. I don’t know what to try anymore and can’t seem to find the source of the problem.

I am using mongodb 8.0.10