Making a signature file that passes
Forms usually want the signature cropped close, on white, as a JPG with a wide shape such as 140 × 60 pixels or 3:1. A dark pen line on white compresses well, so 20 KB leaves plenty of room; most failures come from shadows, grey paper or too much empty margin.
If the form rejects the file for its dimensions rather than its size, crop the signature to the stated shape first with the crop tool's free box, then bring it under the limit here.