Add error handling in make_arr

make_arr is used to allocate
large-sized memory space in kernel.
Also fix init_wb_pool