Limit cycles of planar piecewise differential systems with linear Hamiltonian saddles