Effective Ratner equidistribution result for SL$(2,\mathbb R)\ltimes \mathbb R^{2k}$ and applications to quadratic forms