Diagnostic step 1
Do not overwrite or delete existing primary pg_wal files. On standby, identify the first corrupt WAL LSN from logs and copy the corresponding WAL segment directly from primary's pg_wal (if available) to the standby's restore path; test if replay continues.