An incorrect calculation in the ZIP-317 block template selector fails to account for the header and transaction-count size within the block budget. This allows attackers to submit valid selectable transactions to a miner's mempool to create oversized block templates, leading to block rejection and wasted proof-of-work.