Despite these tips described in this article, It is not possible to detect and block Chrome headless, It seems possible to detect Chrome Headless.
For example these 2 sites detect & block Chrome Headless. :
To do this, he uses the DataDome Real-Time Bot Protection service.
I have no idea how he proceeds to detect Chrome Headless.