Diagnostic step 1
On the standby, inspect pg_locks and pg_stat_activity to identify which process holds the conflicting lock (look for relation or meta-lock types) and consider terminating nonessential background workers (autovacuum) temporarily to let replay proceed.