Kodi shuts down when conecting ps5 controller



I have a  samsung galaxy tab s8 ultra pro.
Lates android 14 lates version.
I like to play games on kodi on iac
A soon as i conect the ps5 kodi close if i select it with the controller it open and closes.
I instaled a older version like nexus it just works fine.
What can i truy to fix this isue

Thanks lee