Index compactor died too soon 4.6.4

The index creation halts when there is following error while doing compaction.

Only the restart of the node which thrown the error helps in continuing the operations.

Compactor for view *****bucket name *****/_design/sync_housekeeping (pid [{type,
view},
{name,
<<"*****bucket name *****/_design/sync_housekeeping">>},
{important,
false},
{fa,
{#Fun<compaction_new_daemon.25.102846360>,
[<<"*****bucket name *****">>,
<<"_design/sync_housekeeping">>,
{config,
{30,
undefined},
{30,
undefined},
undefined,
false,
false,
{daemon_config,
30,
131072,
20971520}},
false,
{[{type,
bucket}]}]}}]) terminated unexpectedly (ignoring this): {index_compactor_died_too_soon,
{<11639.19092.1>,
<<"*****bucket name *****">>,
<<"_design/sync_housekeeping">>,
mapreduce_view,
replica}}

Is there a work around or best practice to help not getting this error. This haunts the complete sync gateway operations.

Is there somebody who can help on this

C:- @househippo

this is happening on 5.1 also.