Android 13 custom rom display restarting

I have a custom android 13 rom, i have added the needed idc files but im runnign into a problem.

Whild on HDMI the screen will restart every 20sec i think this is the event in logcat
Removing device WingCoolTouch WingCoolTouch Keyboard due to epoll hang-up event.

If i contiune to touch the screen the whole device will restart.

While on usb-c the same thing happens but if i touch the screen after the frist reset the whole device will restart.

I have a stock Khadas android 13 rom on another device and the same screen works fine, i have tested with and without my custom idc file

Removing device WingCoolTouch WingCoolTouch due to epoll hang-up event.
Removed device: path=/dev/input/event6 name=WingCoolTouch WingCoolTouch id=3 fd=202 classes=TOUCH | TOUCH_MT | LIGHT | EXTERNAL
Device removed: id=8, eventHubId=3, name='WingCoolTouch WingCoolTouch', descriptor='b8af8c6f38a1ff185849ff29e68f783ee13e9dcf', sources=KEYBOARD | TOUCHSCREEN
Removing device WingCoolTouch WingCoolTouch Keyboard due to epoll hang-up event.
Removed device: path=/dev/input/event7 name=WingCoolTouch WingCoolTouch Keyboard id=2 fd=197 classes=KEYBOARD | ALPHAKEY | LIGHT | EXTERNAL
Device removed: id=8, eventHubId=2, name='WingCoolTouch WingCoolTouch', descriptor='b8af8c6f38a1ff185849ff29e68f783ee13e9dcf', sources=KEYBOARD
Removed device at /dev/bus/usb/001/005: WingCoolTouch
Product: WingCoolTouch
Manufacturer: WingCoolTouch
WingCoolTouch WingCoolTouch as /devices/platform/fc800000.usb/usb1/1-1/1-1.1/1-1.1:1.0/0003:27C0:0868.0007/input/input15
WingCoolTouch WingCoolTouch Keyboard as /devices/platform/fc800000.usb/usb1/1-1/1-1.1/1-1.1:1.0/0003:27C0:0868.0007/input/input16
New device: id=12, fd=374, path='/dev/input/event6', name='WingCoolTouch WingCoolTouch', classes=TOUCH | TOUCH_MT | LIGHT | EXTERNAL, configuration='/system/usr/idc/Vendor_27c0_Product_0868.idc', keyLayout='', keyCharacterMap='', builtinKeyboard=false, 
Input device WingCoolTouch WingCoolTouch should be associated with external display, fallback to internal one for the external viewport is not found.
Device reconfigured: id=9, name='WingCoolTouch WingCoolTouch', size 1920x1080, orientation 0, mode 1, display id 0
Device added: id=9, eventHubId=12, name='WingCoolTouch WingCoolTouch', descriptor='b8af8c6f38a1ff185849ff29e68f783ee13e9dcf',sources=TOUCHSCREEN
27C0:0868.0007: input,hiddev96,hidraw0: USB HID v1.10 Keyboard [WingCoolTouch WingCoolTouch] on usb-fc800000.usb-1.1/input0
Configuration for keyboard device 'WingCoolTouch WingCoolTouch Keyboard' requested keyboard layout 'Vendor_27c0_Product_0868' but it was not found.
Configuration for keyboard device 'WingCoolTouch WingCoolTouch Keyboard' requested keyboard character map 'Vendor_27c0_Product_0868' but it was not found.
New device: id=13, fd=391, path='/dev/input/event7', name='WingCoolTouch WingCoolTouch Keyboard', classes=KEYBOARD | ALPHAKEY | LIGHT | EXTERNAL, configuration='/system/usr/idc/Vendor_27c0_Product_0868.idc', keyLayout='/system/usr/keylayout/Generic.kl', keyChara
Input device WingCoolTouch WingCoolTouch should be associated with external display, fallback to internal one for the external viewport is not found.
Device added: id=9, eventHubId=13, name='WingCoolTouch WingCoolTouch Keyboard', descriptor='b8af8c6f38a1ff185849ff29e68f783ee13e9dcf',sources=KEYBOARD | TOUCHSCREEN
27C0:0868.0008: hiddev97,hidraw1: USB HID v1.10 Device [WingCoolTouch WingCoolTouch] on usb-fc800000.usb-1.1/input1
WingCoolTouch WingCoolTouch as /devices/platform/fc800000.usb/usb1/1-1/1-1.1/1-1.1:1.2/0003:27C0:0868.0009/input/input17
27C0:0868.0009: input,hidraw2: USB HID v1.10 Mouse [WingCoolTouch WingCoolTouch] on usb-fc800000.usb-1.1/input2
USB device attached: vidpid 27c0:0868 mfg/product/ver/serial WingCoolTouch/WingCoolTouch/1.10/9LQ0172005164 hasAudio/HID/Storage: false/true/false
Added device UsbDevice[mName=/dev/bus/usb/001/006,mVendorId=10176,mProductId=2152,mClass=0,mSubclass=0,mProtocol=0,mManufacturerName=WingCoolTouch,mProductName=WingCoolTouch,mVersion=1.10,mSerialNumberReader=com.android.server.usb.UsbSerialReader@f35b7a3, mHasAu
UsbConfiguration[mId=1,mName=null,mAttributes=128,mMaxPower=100,mInterfaces=[
UsbInterface[mId=0,mAlternateSetting=0,mName=null,mClass=3,mSubclass=0,mProtocol=0,mEndpoints=[
UsbEndpoint[mAddress=129,mAttributes=3,mMaxPacketSize=64,mInterval=1]]
UsbInterface[mId=1,mAlternateSetting=0,mName=null,mClass=3,mSubclass=0,mProtocol=0,mEndpoints=[
UsbEndpoint[mAddress=130,mAttributes=3,mMaxPacketSize=64,mInterval=1]
UsbEndpoint[mAddress=2,mAttributes=3,mMaxPacketSize=64,mInterval=1]]
UsbInterface[mId=2,mAlternateSetting=0,mName=null,mClass=3,mSubclass=0,mProtocol=0,mEndpoints=[
UsbEndpoint[mAddress=131,mAttributes=3,mMaxPacketSize=64,mInterval=1]]]]
Removing device WingCoolTouch WingCoolTouch due to epoll hang-up event.
Removed device: path=/dev/input/event6 name=WingCoolTouch WingCoolTouch id=12 fd=374 classes=TOUCH | TOUCH_MT | LIGHT | EXTERNAL
Device removed: id=9, eventHubId=12, name='WingCoolTouch WingCoolTouch', descriptor='b8af8c6f38a1ff185849ff29e68f783ee13e9dcf', sources=KEYBOARD | TOUCHSCREEN
Removing device WingCoolTouch WingCoolTouch Keyboard due to epoll hang-up event.
Removed device: path=/dev/input/event7 name=WingCoolTouch WingCoolTouch Keyboard id=13 fd=391 classes=KEYBOARD | ALPHAKEY | LIGHT | EXTERNAL
Device removed: id=9, eventHubId=13, name='WingCoolTouch WingCoolTouch', descriptor='b8af8c6f38a1ff185849ff29e68f783ee13e9dcf', sources=KEYBOARD
Removed device at /dev/bus/usb/001/006: WingCoolTouch
Product: WingCoolTouch
Manufacturer: WingCoolTouch

Is there a problem with pushing this idc file on the khadas firmware? Post your IDC file and take a look.