Nothing can compensate you for losing a child but at least the burden of having to return to work a few days later will soon be removed, thanks to Jack's law.

From April, any parent who loses a child up to the age of 18 will be entitled to two weeks paid bereavement leave, provided they have worked for their employer for at least 26 weeks. 

The leave can be taken either as a single block of two weeks, or as two separate blocks of one week each across the first year after the child's death.  The payment will be up to £148 a week, so not necessarily full pay but better than the current position which gives no automatic right to paid time off for bereavement.