Agents not connecting after restart and pipeline configuration page error

Hi all, earlier we used jenkins in centos7 later we migarted to centos9. while migarting jenkins we installed new version 2.440.2 in centos9 later we migrate old jenkins to new jenkins it successfully migrated and all pipelines are came and nodes info also came later we reconfigured nodes(ssh-agent). now the problem is pipeline conf page is throwing error like below image and nodes are getting ofline after restart or stop and start jenkins server. so please give me solution to solve my problem