Sorry for the late reply. I always saw illegal state exception on the oreo device(Nexus 6P) whenever I start a background service with target sdk 26. (And please note that it would be issued when app is on the background state.)
Receiver is not same with background job, though it has some limitations to receive events. Samsung has own battery optimizer on their product. So I just guess your case came from that situation.