How to fix Multidimensional arrays must have sub-arrays with matching dimensions in PostgreSQL | DevErrors