If you have cooked the pastry cream too quickly or too long and it develops lumps, do not worry. It happens to the best of us. First, remove it from the heat and try to whisk it until it smooths out. If that does not work, wait until it cools, then run it through a fine sieve or quickly blend it in a food processor until smooth. As you practice making pastry cream, you will become familiar with what it should look like when it is done.