Rocky Linux 8 : DH Key configuration issues with NodeJS

My NodeJS Application/Code is working good with CentOS 7. After porting (Compile & Deploy) the same code base on “Rocky Linux 8” System, I am getting below error.

Note : AWS API Gate way is having this backend system
Error :
{“name”:“oscError”,“message”:“write EPROTO 139715211144128:error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small:ssl/statem/statem_clnt.c:2150:\n”,“loggerTraceId”:“6ccceae0-03dc-11ec-a840-ad029ce146b1”,“logger”:{},“type”:“GatewayTimeout”}[rocky@demo-webhost ~]$