But I've heard that the pubic hair shouldn't be more than the size of one grain of rice. Is this true, or we can shave after 40 days?

40 days is the maximum criteria but it’s better to shave it before that. It’s depend on one’s own situation and conditions.