Highest truncated pyramid validator errors

I’ve having trouble with submitting some code for the “Highest truncated pyramid” community puzzle. I’ve used triangle numbers to produce a few lines of Javascript that solves for all test cases, but fails on validators 2 and 6, preventing 100% score.

Hopefully this is the best place to submit this bug/issue, if not then please redirect me.

EDIT: Solved 02 Validator 2 by testing custom case for numbers with non-integer triangle root difference. Still not passing 05 Validator 6.

EDIT2: Solved 100%. Had to test against all triangle numbers until an integer was found.