Jenkins-Github. Sporadic authentication failures

Hi All,

I need help/tips/anything to root cause the issue with GitHub authentication. My Jenkins jobs randomly getting authentication error. But, If I restart the job just in a second, it will pass and authentication will succeed. I’m using GitHub Organization with installed and properly configured GitHub App for authentication.

Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository https://github.com/xxxxxx/backend.git
 > /usr/bin/git init ~/.jenkins/workspace/backend_PR-40 # timeout=10
Fetching upstream changes from https://github.com/xxxxxx/backend.git
 > /usr/bin/git --version # timeout=10
 > git --version # 'git version 2.30.1 (Apple Git-130)'
using GIT_ASKPASS to set credentials GitHub App
 > /usr/bin/git fetch --no-tags --force --progress -- https://github.com/xxxxxx/backend.git +refs/pull/40/head:refs/remotes/origin/PR-40 +refs/heads/main:refs/remotes/origin/main # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "/usr/bin/git fetch --no-tags --force --progress -- https://github.com/xxxxxx/backend.git +refs/pull/40/head:refs/remotes/origin/PR-40 +refs/heads/main:refs/remotes/origin/main" returned status code 128:
stdout: 
stderr: remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/xxxxxx/backend.git/'

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2681)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2102)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:86)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:624)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:853)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1227)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1305)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

Configuration:

Any advise highly appreciated.
Thanks.