I am inputting UK postcodes and it keeps placing the postcodes in america and other countries. How can I stop this?

For the suffix you can also try the local version, e.g. “Italia”, or even in combination with the region, e.g. “Piemonte, Italia”.

If partial, incomplete addresses can not be found, use the full information including street, housenumber, postcode, city, state/regio/province and country to locate addresses on the map.

If nothing helps, make Mapbox your default and signal problems to their developers:

https://www.mapbox.com/geocoder-feedback/