BSDEs with diffusion constraint and viscous Hamilton–Jacobi equations with unbounded data