As stated in the error (Value not conserved), there is a difference of the amount of input and output. You should dubble check your input UTXO amount, fee’s and output such that the match.
is it possible that the node isn’t fully synced yet?
The invalid-hereafter value must be greater than the current tip. in your case, it’s lower than the current tip
try again the:
currentSlot=$(cardano-cli query tip --mainnet | jq -r '.slot')
echo Current Slot: $currentSlot
and be sure when building the raw transaction, that the invalid-hereafter value is larger than the current slot tip (usually current slot +1000 should do the trick)