Good advice from Henry Taylor in the comments. A clean nozzle and proper thinning are two key things. Another is various problems with air in the wrong amounts and the wrong places.
Why Your Spray Gun is Spitting is a good article on the common problems and fixes. Some of the components mentioned may not apply to your airbrush, but I'll paste the essential portion (bulk of the article), here in case the link dies:
-
Fluid Nozzle – The first area to check if your spray gun is spitting is the fluid nozzle. A loose fluid nozzle does not properly seat in the tip of the spray gun and causes air to enter the fluid supply resulting in spitting. To solve this issue properly tighten your fluid nozzle or if unable to tighten the fluid nozzle inspect the head of the spray gun to see if there is any stripping of the fluid seat or the fluid nozzle threading is stripped.
-
Air Cap Properly Matched – If you are using a siphon/suction-fed spray gun, the correct air Cap is vital to being able to properly spray and not experience spitting. With a suction fed spray gun you have to use a suction/ siphon fed spray gun air cap and NOT A PRESSURE FED AIR CAP. Siphon-fed air caps cause air to be drawn across the material allowing it to be supplied and sprayed; a pressure cap will not create a suction effect, resulting in fluid not being supplied to the spray gun.
-
Packings - If you have the correct air cap and fluid nozzle, it might be that your packing nut is bad or the physical packings are worn. Inspect the packing nut to ensure it is tight as well as the packings to ensure they are not worn or missing. If the packings are missing, make sure to order new packings.
-
Fluid Connections- If you are using a pressure-fed spray gun, make sure your fluid connection is tightly applied to your spray gun.
-
Gravity or Suction Cup – If you are using a gravity or suction-fed spray gun, make sure your cup is seating tightly into the spray gun. Inspect the threads of the cup to ensure they are not stripped as well as inspect the threads of your spray gun to ensure they are in good shape and not stripped. If either are stripped replace the cup or gun body if necessary (or buy a new spray gun).
-
Material is to Heavy/Viscous – If you're using a suction-fed spray gun, your coating may be too viscous to be sprayed with a suction-fed spray gun. If you want to use a suction-fed spray gun to spray the material, you can try increasing the fluid nozzle and/or selecting a higher CFM air cap (which will allow for better draw of the material up to the fluid nozzle).
-
Air Cap Clogged (Suction Spray Gun) – Check your air cap to ensure that is not blocked by any paint. If it is, clean it out using a cup of proper cleaner.
-
Fluid Pressure too Low – If you're using a pressure-fed spray gun, you may not be applying enough pressure to your coating to supply the gun appropriately. This often happens with very thin material like stains that you are trying to keep coating to a small amount. To remedy this, try applying a little more pressure to the coating and then using your fluid adjustment knob to restrict fluid to the spray gun.
-
Fluid Passage Clogged – Clean the fluid passage of your spray gun with an appropriate cleaner to ensure no particle has become lodged in the spray gun due to sitting for a while or a partial hardening of material. If this is a recurring issue consider adding a fluid filter to your pressure pot or straining your material prior to spraying appropriately.
Note: This quotation has been corrected for spelling, punctuation, and capitalization to improve readability.