Hello
Try on actual 10.5 minor verson. Seems this bug was already fixed in 10.5:
> Ensure that a process doing a parallel index scan will respond to signals (Amit Kapila)
> Previously, parallel workers could get stuck waiting for a lock on an index page, and not notice requests to abort the query.
regards, Sergei