Hiya
Ok...Don't stress about having done the painting. It's true that we don't recommend people do any painting whilst they are pregnant, but the fact is we don't know how harmful the solvents are that are used in paint nowadays. Paint no longer has lead in it - not since the 1970s, so it is also a no no to strip paint whilst you are pregnant.
Painting exposes you to oils, resins, solvents, driers, extenders, vinyl, latex, and acrylic. The pigments in paint can include metals such as lead, zinc, and aluminum. Because painting involves so many chemicals, and because it's so difficult to measure how much of the various substances the body actually absorbs, it is difficult to know the exact risks to pregnant women. (If you've already been exposed to these chemicals, but haven't felt ill, don't worry. The chances your baby will be affected are practically none).
Stress about how much harm you have done the baby will in turn cause more problems than the painting itself. If you want to reassure yourself further then look at the tin - Low VOC paint (most is nowadays) is way safer to use (but the tint usually has chemicals in it). And latex paint is the best.
Just stay clear of paint from now on and you and your baby should be just fine.
Take Care