Security seals.
https://www.mfsecurityseals.uk/securing-general-election/The ballot papers themselves are traceable, so if you're going to stuff the box you need to add the relevant number of ballots to the record and fake their issue to particular voters.
They're also in the custody of ballot officials; in the UK this is one area where I genuinely trust the ability of those people making up the system to operate genuinely according to the rules. We've even managed to hold fair elections in occupied Belfast.
Switching to e-voting would turn the whole thing over to known insecure consumer PCs and known suspect contractors like Diebold and Capita, all of whom I trust about as far as I can throw them; I trust the small army of ordinary people who make the paper count happen far more.
Maybe next election I'll volunteer as an observer.