Reject invalid coin height and output index when loading assumeutxo
Summary:
This is a backport of core#22146
We can bypassing the temporary ubsan suppressions (core#22202).
The casting to uint32_t is necessary to avoid a -Wsign-compare warning. A block height can not be negative.
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D12178