There is no perfect number, but the loss limits make the maths clear.
Example
On a $10,000 account with a 5% daily limit ($500), risking 1% ($100) per trade allows several losses before the limit. Risking 3% ($300) leaves room for only one and a half.
Formula
Position size = money at risk รท stop distance. If you risk $100 with a 20 pip stop, you need about $5 per pip.
Rule of thumb
Many traders keep risk well under 1% per trade during a challenge. That is a habit, not a guarantee.
Remember
Open losses count too. Size so that your worst case still leaves you inside the daily limit.